package dao;

import java.util.List;

import bean.pojo.GdDoctor;
import bean.pojo.GdUserDoctorlist;
import org.apache.ibatis.annotations.Param;


public interface GdUserDoctorlistMapper {
    /**
     * 查询医生列表
     * @param userId
     * @return
     */
    List<GdDoctor> selectDocList(@Param("userId")Long userId);

    /**
     * 查询医生是否已被某用户关注
     * @param doctorId
     * @param userId
     * @return
     */
     GdUserDoctorlist isFollow(@Param("doctorId") Long doctorId,
                               @Param("userId") Long userId);
    /**
     * 添加关注
     * @param userId
     * @param doctorId
     * @return
     */
    int insert(@Param("userId")Long userId,
               @Param("doctorId")Long doctorId);

    /**
     * 取消关注
     * @param userId
     * @param doctorId
     * @return
     */
    int delete(@Param("userId")Long userId,
               @Param("doctorId")Long doctorId);
}